package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 停车场保安操作日志
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_car_park_log")
public class CarParkLog extends Model<CarParkLog> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "log_id", type = IdType.ASSIGN_ID)
    private String logId;
    /**
     * 停车场名称
     */
    @TableField("name")
    private String name;
    /**
     * 操作时间
     */
    @TableField("operator_time")
    private LocalDateTime operatorTime;
    /**
     * 说明
     */
    @TableField("note")
    private String note;
    /**
     * 类型:1停车场开启关闭日志2停车场放行日志
     */
    @TableField("type")
    private Integer type;
    /**
     * 停车场
     */
    @TableField("park_id")
    private String parkId;
    /**
     * 操作人
     */
    @TableField("operator")
    private String operator;
    /**
     * 机构ID
     */
    @TableField("org_id")
    private String orgId;

    public void freeData() {
        this.logId = null;
        this.name = null;
        this.operatorTime = null;
        this.note = null;
        this.type = null;
        this.parkId = null;
        this.operator = null;
        this.orgId = null;
    }

}
